/**
 * Created by yu on 16/8/21.
 */
var buffer = new Buffer('老周','utf8');//不指定默认就是utf8
//buffer转字符串          字符  开始 结束
var str = buffer.toString('utf8',3,6);

console.log(buffer,str);